home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / SNNSV32.ZIP / SNNSv3.2 / xgui / sources / ui_colEdit.ph < prev    next >
Encoding:
Text File  |  1994-04-25  |  2.5 KB  |  85 lines

  1. /*****************************************************************************
  2.   FILE           : ui_colEdit.ph
  3.   SHORTNAME      : colEdit.ph
  4.   SNNS VERSION   : 3.2
  5.  
  6.   PURPOSE        : header for ui_colEdit.c
  7.   NOTES          : all functions will be exported
  8.  
  9.   AUTHOR         : Ralf Huebner
  10.   DATE           : 27.5.1992
  11.  
  12.   CHANGED BY     : Guenter Mamier
  13.   IDENTIFICATION : @(#)ui_colEdit.ph    1.8 3/2/94
  14.   SCCS VERSION   : 1.8
  15.   LAST CHANGE    : 3/2/94
  16.  
  17.              Copyright (c) 1990-1994  SNNS Group, IPVR, Univ. Stuttgart, FRG
  18.              
  19. ******************************************************************************/
  20.  
  21.  
  22. #ifndef _UI_COLEDIT_DEFINED_
  23. #define _UI_COLEDIT_DEFINED_
  24.  
  25.  
  26. /* begin global definition section */
  27.  
  28.  
  29. #ifndef ZERO
  30. #define ZERO 0
  31. #endif
  32.  
  33. #define noOfColToggles     3
  34.  
  35.  
  36. void ui_createColorEditPannel (Widget, Widget, caddr_t);
  37.  
  38. /* end global definition section */
  39.  
  40.  
  41. /* begin private definition section */
  42.  
  43.  
  44. static void ui_cancelColorEditPannel (Widget, Widget, caddr_t);
  45. static void ui_closeColorEditPannel (Widget, Widget, caddr_t);
  46. static void ui_getDisplayColors (void);
  47. static Widget ui_xCreateColButtonItem (Widget, unsigned long, int, int, 
  48.                 Widget, Widget);
  49. static void ui_createColWidgets (Widget);
  50. static Widget ui_createTestPannel (Widget, Widget, Widget);
  51. static void ui_redrawColorWindow (void);
  52. static void ui_colorUpdateProc (Widget, int, caddr_t);
  53. static void ui_timerProc (caddr_t, XtIntervalId *);
  54. static void ui_colorWindowEventProc (Widget, Display *, XEvent *);
  55. static void ui_setToggles (int, int *, int, Widget []);
  56. static void ui_selectColorItemProc (Widget, int, caddr_t);
  57.  
  58.  
  59. static Widget ui_colWidget[UI_MAX_EDIT_COLS]; /* widgets for the edit colors */
  60. static Widget colorToggle[noOfColToggles];    /* widgets for text,         */
  61.                                               /* background and selection */
  62.  
  63. static int colWidgetXsize = 32;   /* X size of a color edit widget */
  64. static int colWidgetYsize = 16;   /* Y size of a color edit widget */
  65.  
  66. static Window colWindow;          /* id of the test window */ 
  67.  
  68. static int ui_currentBackCol;   /* currently selected background color index */
  69. static int ui_currentSelCol;    /* currently selected selection color index */
  70. static int ui_currentTextCol;   /* currently selected background color index */
  71.  
  72. static int currentSelection = UI_SELECT_BACK_COLOR; /* default selection */
  73.  
  74. static GC colGC;               /* graphic context for the test window */
  75.  
  76.  
  77. /* end private definition section */
  78.  
  79.  
  80. #endif /* _UI_COLEDIT_DEFINED_ */
  81.  
  82.  
  83. /* end of file */
  84. /* lines: 23 */
  85.